package com.cloud.shopping.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author John.zhang
 * @version Id: Order, v 1.0 2021/1/3 20:45 ZhiYong Exp $
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "order_info")
public class Order implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    private String payType;
    private Date createTime;
    private Date updateTime;
    private Date payTime;
    private Date consignTime;
    private Date endTime;
    private String username;
    /**
     * 收件人
     */
    private String recipients;
    /**
     * 收件人手机号
     */
    private String recipientsMobile;
    /**
     * 收件人地址
     */
    private String recipientsAddress;
    private String wChatTransactionId;
    /**
     * 订单商品总数量
     */
    private Integer totalNum;
    /**
     * 支付总金额
     */
    private Integer moneys;
    private Integer orderStatus;
    private Integer payStatus;
    private Integer isDelete;

    /**
     * 购物车ID集合
     */
    @TableField(exist = false)
    private List<String> cartIds;
}
